package org.rcy.framework.api.entity;

public enum StatusCode {

    OK(20000, "请求成功"),
    FAILER(20001, "请求失败"),
    USERANDPASSWORDERROR(20002, "账号或密码错误"),
    ORIPASSWORDERROR(200021, "原密码错误"),
    NOPERMISSION(20003, "无此权限"),
    RPCERROR(20004, "PRC调用错误"),
    REPEATDO(20005, "重复操作"),
    AUTHENTICATIONEXPIRED(20006, "认证过期"),
    PARAMSERROR(20007, "参数异常"),
    VALIDATECODEERROR(2008,"验证码错误或已过期"),
    FILEUPLOADFAILED(2009,"文件上传失败"),
    REGISTERFAILED(2010,"注册失败");

    private final int value;
    private final String reasonPhrase;

    private StatusCode(int value, String reasonPhrase) {
        this.value = value;
        this.reasonPhrase = reasonPhrase;
    }

    public int getValue() {
        return value;
    }

    public String getReasonPhrase() {
        return reasonPhrase;
    }
}